package com.loooooo.pm2024.modules.secu;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.loooooo.pm2024.config.BigIDSerialize;

import java.io.Serializable;

public class LoginedUser implements Serializable {
    private String loginType;
    @JsonSerialize(using = BigIDSerialize.class)
    private Long userId;
    private String username;
    private String accessToken;
    private Long expireTime;
    private String accessCode;

    public String getLoginType() {
        return loginType;
    }

    public LoginedUser setLoginType(String loginType) {
        this.loginType = loginType;
        return this;
    }

    public Long getUserId() {
        return userId;
    }

    public LoginedUser setUserId(Long userId) {
        this.userId = userId;
        return this;
    }

    public String getUsername() {
        return username;
    }

    public LoginedUser setUsername(String username) {
        this.username = username;
        return this;
    }

    public String getAccessToken() {
        return accessToken;
    }

    public LoginedUser setAccessToken(String accessToken) {
        this.accessToken = accessToken;
        return this;
    }

    public Long getExpireTime() {
        return expireTime;
    }

    public LoginedUser setExpireTime(Long expireTime) {
        this.expireTime = expireTime;
        return this;
    }

    public String getAccessCode() {
        return accessCode;
    }

    public LoginedUser setAccessCode(String accessCode) {
        this.accessCode = accessCode;
        return this;
    }

}
